#include "matoolbutton.h"

MAToolButton::MAToolButton(): QToolButton()
{

}

MAToolButton::MAToolButton(MAWindow * ma):QToolButton()
{
    mawindow = ma;
    setAutoFillBackground(true);
    setBackgroundRole(QPalette::NoRole);
    QObject::connect(this,SIGNAL(clicked()),this,SLOT(changed()));
}
void MAToolButton::changed()
{
   mawindow->changeStackedWidget(this);
}
